# import random
# number = random.randint(1,100)
# user = int(input('请输入你要猜的数字：'))
# #print(number)
# while user != number:
#     if user > number:
#         print('猜大了')
#     else:
#         print('猜小了继续猜')
#     user = int(input('请输入你要猜的数字：'))
# print('猜对了')
import random
computer = random.randint(1,1000)
player = int(input('请输入你猜的数字：'))
while computer != player:
    if computer < player:
        print('猜大了')
    else:
        print('猜小了')
    player = int(input('猜错了继续猜：'))
print('猜对了')
